#include "app_device.h"
#include "log/log.h"
#include <unistd.h>
#include "app_bt.h"

int main(int argc, char const *argv[])
{
    // 初始化设备
    char *device_name = "serial_file";
    Device *device = app_device_init(device_name);

    // 初始化蓝牙
    app_bt_init(device);

    // 运行设备
    app_device_start();

    // 睡眠
    sleep(1000);

    // 关闭设备
    app_device_destroy();

    return 0;
}
